package com.service.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.service.dao.model.TradingSpotTrades;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 币币交易成交记录
 *
 * @author xxxx
 * @email xxxx@qq.com
 * @date 2020-02-05 11:10:01
 */
@Mapper
public interface TradingSpotTradesMapper extends BaseMapper<TradingSpotTrades> {

    BigDecimal getMaxPrice(@Param("symbol") String symbol,@Param("startTime") Date startTime,@Param("endTime") Date endTime);

    BigDecimal getMinPrice(@Param("symbol") String symbol,@Param("startTime") Date startTime,@Param("endTime") Date endTime);

}
